//
//  FGBaseVC.h
//  Flashfish
//
//  Created by LWF on 2017/8/15.
//  Copyright © 2017年 dong9. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Masonry/Masonry.h>

typedef void (^NormalBlock)(id obj);

UIEdgeInsets fg_safeAreaInset(UIView *view);

@interface FGBaseVC : UIViewController

@property (nonatomic, copy) NormalBlock normalBlock;

+ (instancetype)newWithBlock:(NormalBlock)block;

/**    控制导航栏显示隐藏  default:NO     */
- (BOOL)navBarHidden;
/**    控制导航栏分割线显示隐藏     */
@property (nonatomic, assign) BOOL navBarLineHidden;

/**    顶部添加安全间距     */
- (void)setSafeTopForView:(UIView *)view;
/**    底部添加安全间距     */
- (void)setSafeBottomForView:(UIView *)view;

- (void)updateSafeTopForView:(UIView *)view offset:(CGFloat)offset;
- (void)updateSafeBottomForView:(UIView *)view offset:(CGFloat)offset;

- (void)back;

@end
